<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<title>{$cms_name|escape:"html":"UTF-8"} {$cms_version|escape:"html":"UTF-8"} {if $title}- {$title|escape:"html":"UTF-8"}{/if}</title>
	<meta http-equiv="X-UA-Compatible" content="chrome=1">
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery-ui-1.6/minified/jquery.ui.all.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery.taconite.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery.form.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery.livequery.js" type="text/javascript" charset="utf-8"></script>
	
	<script src="/admin/backend/resources/js/common.js" type="text/javascript" charset="utf-8"></script>
	
	<link rel="stylesheet" href="/admin/backend/resources/css/reset.css" type="text/css" charset="utf-8" />
	<link rel="stylesheet" href="/admin/backend/resources/css/webtacular.css" type="text/css" charset="utf-8" />
	<!--[if lte IE 7.0]>
	<link rel="stylesheet" href="/admin/backend/resources/css/ie.css" type="text/css" charset="utf-8" />
	<![endif]-->	
</head>

<body>

<div id="header">
	<h1>{$cms_name|escape:"html":"UTF-8"}</h1>
</div>

<div id="container">
	
	<div class="content">
		<div class="inner-content">
			
			{if strpos($smarty.server.HTTP_USER_AGENT, 'MSIE')!==false and strpos($smarty.server.HTTP_USER_AGENT, 'chromeframe')===false}
				
				<h2>Google Chrome Frame</h2>
				<p>Google Chrome Frame is required to use the {$cms_name|escape:"html":"UTF-8"} administration in Internet Explorer.</p>
				<p><a href="http://www.google.com/chromeframe/eula.html">Install Google Chrome Frame</a></p>
				
			{else}
				
				<h2>Login</h2>
				
				{if $smarty.post}
				<div class="messages">
					<p>Oops, the details you provided didn't match anything we've got in our system.</p>
					<p>If you can't remember your username or password, please contact your website administrator.</p>
				</div>
				{/if}
				
				<form action="{$smarty.server.REQUEST_URI}" method="post" class="form">
					<div>
						<label for="username_or_email">Username or email address</label>
						<input type="text" name="login[username_or_email]" value="{$smarty.post.login.username_or_email|escape:"html":"UTF-8"}" id="username_or_email" class="text" />
					</div>
					<div>
						<label for="password">Password</label>
						<input type="password" name="login[password]" value="{$smarty.post.login.password|escape:"html":"UTF-8"}" id="password" class="text" />
					</div>
					
					<input type="submit" name="login-button" value="Login" class="button" />
				</form>
				
			{/if}
			
		</div>
	</div>
	
</div>
	
</body>
</html>
